function removeTrailingZeros(number) {
    if (number.toString().indexOf('.') != -1) {
        return parseFloat(number)
    } else {
        return number
    }
}